﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CadDotNetTools
{
    public class SendCommandCmd
    {
        /// <summary>
        /// 向 CAD 软件发送字符串命令并执行
        /// </summary>
        /// <param name="command">要发送的命令字符串</param>
        public void SendCommand(string command) => Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStringToExecute($"{command} ", true, false, false);
    }
}
